#include<bits/stdc++.h>

using namespace std;

int main() {
    int a, b, c, m;

    while (cin >> a >> b >> c) {

        int flag = 0;

        for (int i = 10; i <= 100; i++) {
            if (i % 3 == a && i % 5 == b && i % 7 == c) {
                m = i;
                flag = 1;
                break;
            }
        }

        if (!flag) {
            cout << "No answer" << endl;
        } else {
            cout << m << endl;
        }

    }
    return 0;
}
